<template>
  <div class="equityDetail2">
        <h1>投资策略</h1>
        <el-row :gutter="20">
            <el-col :span="7">
              <div class="detail">
                 <img src="http://img3.tqcaifu.com/img/touyan1.png" alt="2017年募资突破万亿元大关 股权私募">
                 <div class="detailinfo">
                     <p>2017年募资突破万亿元大关 股权私募</p>
                 </div>
              </div>
              <div class="detail">
                 <img src="http://img3.tqcaifu.com/img/touyan2.png" alt="2017年募资突破万亿元大关 股权私募">
                 <div class="detailinfo">
                     <p>2017年募资突破万亿元大关 股权私募</p>
                 </div>
              </div>
            </el-col>
            <el-col :span="8">
                 <ul class="newsList">
                     <li v-for="(item,index) in newdata" :key="index" v-if="index<6">
                        <nuxt-link target="_blank" :to="'/post/' + item.pid">
                            <span class="dian"></span>{{item.name}}
                        </nuxt-link>
                    </li>
                 </ul>
            </el-col>
            <el-col :span="8">
                 <ul class="newsList">
                   <li v-for="(item,index) in newdata" :key="index" v-if="index >=6 && index<12">
                        <nuxt-link target="_blank" :to="'/post/' + item.pid">
                            <span class="dian"></span>{{item.name}}
                        </nuxt-link>
                    </li>
                 </ul>
            </el-col>
        </el-row>
  </div>
</template>
<script>
export default {
  props: {
    infodata: {
      type:Object,
      default:function(){
        return {}
      }
    },
    newdata:{
      type:Array,
      default:function(){
        return []
      }
    }
  }

};
</script>

<style scoped>
.equityDetail2{
    margin: 20px 0;
    background: white;
    padding:  20px;
}
.equityDetail2 h1{
    color: #cd9c54;
    margin-left: 10px;
    font-size: 22px;
}
.detail{
    position: relative;
    margin-top: 20px;
    height: 140px;
    width: 320px;
    overflow: hidden;
}
.detail img{
    height: 100%;
    width: 100%;
}
.detailinfo{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5)
}
.detailinfo p{
    color: white;
    margin: 100px 0 0 40px;
    width: 80%;
    overflow: hidden;
}

.dian{
    display: inline-block;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: black;
    vertical-align: middle;
    margin-right: 10px;
}
.newsList{
    margin-top: 20px;
    height: 300px;
    overflow: hidden;
}
.newsList li{
    height: 50px;
    line-height: 50px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.newsList li:hover{
    color: #cd9c54;
}
</style>
